<div class="pageContent">
    <form method="post" action="${rc.getContextPath()}/manage/workCenterType/saveWcType" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone);">
        <div class="pageFormContent">
            <input type="hidden" name="navTabId" value="${navTabId!''}"> 
            <input type="hidden" name="id" value="<#if (type.workCenterTypeCode)??>${type.workCenterTypeCode!''}</#if>">
            <fieldset>
                <dl class="nowrap">
                    <dt style="width: 120px;"><@label key="workCenterTypeCode.C,colon">工作中心类型编号：</@label></dt>
                    <dd>
                        <input name="workCenterTypeCode" value="<#if (type.workCenterTypeCode)??>${type.workCenterTypeCode!''}</#if>" size="32" type="text" maxlength="40" class="required  alphanumeric toUp"<#if (type.workCenterTypeCode)??>
                        readonly="readonly"<#else> remote="${rc.getContextPath()}/manage/workCenterType/validateWorkCenterTypeCode"</#if> warn="<@label key='workCenterTypeCodeExist.M'>工作中心编号已经存在</@label>"/> 
                    </dd>
                </dl>
                <dl class="nowrap">
                    <dt style="width: 120px;"><@label key="typeText.C,colon">工作中心类型名称：</@label></dt>
                    <dd>
                        <input name="typeText" value="<#if (type.typeText)??>${type.typeText!''}</#if>" size="64" type="text" maxlength="60" class="required" />
                    </dd>
                </dl>
                <dl class="nowrap">
                    <dt style="width: 120px;"><@label key="parentTypeCode.C,colon">上级类型：</@label></dt>
                    <dd>
                        <input readonly="readonly" name="parentTypeCode" value="<#if (type.parentTypeCode)??>${type.parentTypeCode!''}</#if>" size="32" type="text" maxlength="255" /> <input readonly="readonly"
                            style="margin-left: 10px;" name="parentTypeText" value="<#if (type.parentTypeText)??>${type.parentTypeText!''}</#if>" size="32" type="text" maxlength="255" />
                    </dd>
                </dl>
                <dl class="nowrap">
                    <dt style="width: 120px;">&nbsp;</dt>
                    <dd>
                        <label style="text-align: left;"><input style="margin-right: 2px;" type="checkbox" name="lockFlag" value="1"<#if (type.lockFlag)?? && (type.lockFlag == 1)> checked="true"</#if>><@label key="lock.C">锁定</@label></label>
                    </dd>
                </dl>        
            </fieldset>
        </div>
        <#if (type.workCenterTypeCode)??> <#assign createInfo=type/> <#include "/common/createInfo.html"> </#if>
            <div style="padding-left: 30px;">
            <div class="buttonActive">
                <div class="buttonContent">
                    <button type="submit" onclick="save()"><@label key="save.B">保存</@label></button>
                </div>
            </div>

            <div class="buttonActiveGrey" style="margin-left: 10px;">
                <div class="buttonContent">
                    <button type="button" onclick="cancel()"><@label key="cancel.B">取消</@label></button>
                </div>
            </div>
            </div>
    </form>
</div>

     <script type="text/javascript">
     function cancel() {
         $("#wctDetail",navTab.getCurrentPanel()).html("");
     }
     
     
         
     </script>
